package com.ruoyi.supplier.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品分类属性业务对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CategoryAttrBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long categoryAttrId;

    /**
     * 本地分类ID
     */
    @NotNull(message = "本地分类ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long categoryId;

    /**
     * 规格名称
     */
    @NotBlank(message = "规格名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String attrName;

    /**
     * 规格类型
     */
    @NotBlank(message = "规格类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String attrType;

    /**
     * 规格值
     */
    @NotBlank(message = "规格值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String attrValue;

    /**
     * 是否必须(1是 0否)
     */
    @NotNull(message = "是否必须(1是 0否)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isRequired;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sort;


}
